
package org.xteam.sled.ast;

import org.xteam.parser.runtime.Span;

public class Branch extends org.xteam.parser.runtime.AstNode {
	
	
	protected org.xteam.parser.runtime.AstList<Equation> equations;
	protected AbstractPattern pattern;
	
	public Branch(Span span, org.xteam.parser.runtime.AstList<Equation> equations,AbstractPattern pattern) {
		super(span);
		this.equations = equations;
		this.pattern = pattern;
	}
	public Branch(Span span, org.xteam.parser.runtime.AstList<Equation> equations) {
		super(span);
		this.equations = equations;
	}
	public Branch(Span span, AbstractPattern pattern) {
		super(span);
		this.pattern = pattern;
	}
	
	
	public org.xteam.parser.runtime.AstList<Equation> getEquations() {
		return equations;
	}
	
	public void setEquations(org.xteam.parser.runtime.AstList<Equation> equations) {
		this.equations = equations;
	}
	
	public AbstractPattern getPattern() {
		return pattern;
	}
	
	public void setPattern(AbstractPattern pattern) {
		this.pattern = pattern;
	}
	

	public void visit(ISledVisitor visitor) {
		visitor.visitBranch(this);
	}
}
